
export const isThree = false;  //是否是三员审核
/**
 * 对象数组去重
 * @param {*} originalData 
 */
export const removeDuplicates = (originalData) => {
    let result, obj = {};
    result = originalData.reduce((cur, next) => {
        obj[next.key] ? "" : obj[next.key] = true && cur.push(next);
        return cur;
    }, []);
    return result;
};
/**
 * 获取浏览器url参数
 */
export const getRequest = function () {
    var url = location.href; //获取url中"?"符后的字串
    var theRequest = new Object();
    if (url.indexOf("?") != -1) {
        var str = url.split("?")[1];
        var strs = str.split("&");
        for (var i = 0; i < strs.length; i++) {
            theRequest[strs[i].split("=")[0]] = unescape(strs[i].split("=")[1]);
        }
    }
    return theRequest;
}
/**
 * 判定是否为一个对象
 */
export function isObject(par) {
    return typeof par === 'object' && par && typeof par !== 'function';
}

